package demo;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

/**
 * 
 * 获取Java High Level REST Client客户端
 *
 */
public class InitUtil {
	
	 public static final String INDEX ="spec";
	 public static final String TYPE ="_doc";
	
	 public static RestHighLevelClient getClient() {
	        RestHighLevelClient client = new RestHighLevelClient(
	                RestClient.builder(new HttpHost("47.104.240.171", 80, "http") 
	                		));

	        return client;
	}
}
